package com.docker.jy.service.impl;

import java.util.List;
import com.docker.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.docker.jy.mapper.DoctorStorageManagementMapper;
import com.docker.jy.domain.DoctorStorageManagement;
import com.docker.jy.service.IDoctorStorageManagementService;

/**
 * 会员储值管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-11
 */
@Service
public class DoctorStorageManagementServiceImpl implements IDoctorStorageManagementService 
{
    @Autowired
    private DoctorStorageManagementMapper doctorStorageManagementMapper;

    /**
     * 查询会员储值管理
     * 
     * @param id 会员储值管理主键
     * @return 会员储值管理
     */
    @Override
    public DoctorStorageManagement selectDoctorStorageManagementById(Long id)
    {
        return doctorStorageManagementMapper.selectDoctorStorageManagementById(id);
    }

    /**
     * 查询会员储值管理列表
     * 
     * @param doctorStorageManagement 会员储值管理
     * @return 会员储值管理
     */
    @Override
    public List<DoctorStorageManagement> selectDoctorStorageManagementList(DoctorStorageManagement doctorStorageManagement)
    {
        return doctorStorageManagementMapper.selectDoctorStorageManagementList(doctorStorageManagement);
    }

    /**
     * 新增会员储值管理
     * 
     * @param doctorStorageManagement 会员储值管理
     * @return 结果
     */
    @Override
    public int insertDoctorStorageManagement(DoctorStorageManagement doctorStorageManagement)
    {
        doctorStorageManagement.setCreateTime(DateUtils.getNowDate());
        return doctorStorageManagementMapper.insertDoctorStorageManagement(doctorStorageManagement);
    }

    /**
     * 修改会员储值管理
     * 
     * @param doctorStorageManagement 会员储值管理
     * @return 结果
     */
    @Override
    public int updateDoctorStorageManagement(DoctorStorageManagement doctorStorageManagement)
    {
        return doctorStorageManagementMapper.updateDoctorStorageManagement(doctorStorageManagement);
    }

    /**
     * 批量删除会员储值管理
     * 
     * @param ids 需要删除的会员储值管理主键
     * @return 结果
     */
    @Override
    public int deleteDoctorStorageManagementByIds(Long[] ids)
    {
        return doctorStorageManagementMapper.deleteDoctorStorageManagementByIds(ids);
    }

    /**
     * 删除会员储值管理信息
     * 
     * @param id 会员储值管理主键
     * @return 结果
     */
    @Override
    public int deleteDoctorStorageManagementById(Long id)
    {
        return doctorStorageManagementMapper.deleteDoctorStorageManagementById(id);
    }
}
